package creational.abstractfactory;

import creational.abstractfactory.impl.Green;
import creational.abstractfactory.impl.Red;
import creational.abstractfactory.interfaces.Color;
import creational.abstractfactory.interfaces.Price;

public class ColorFactory extends AbstractFactory {
    @Override
    public Color getColor(String color) {
        if (color.equalsIgnoreCase("green"))
            return new Green();
        else if (color.equalsIgnoreCase("red"))
            return new Red();
        return null;
    }

    @Override
    public Price getPrice(String price) {
        return null;
    }
}
